<template>
	<view class="content">
		<view style="height: var(--status-bar-height);"></view>
		<tabbar :isindex="isindex" @to="to" />
		<view class="page-conent">
			<index v-if="isindex"></index>
			<message v-else />
		</view>
	</view>
</template>

<script>
	import tabbar from '../../components/tabbar.vue'
	import index from './page/index.vue'
	import message from './page/message.vue'
	export default {
		data() {
			return {
				isindex: true
			}
		},
		onLoad() {

		},
		methods: {
			to(index){
				this.isindex = index
			}
		},
		components:{
			tabbar,
			index,
			message
		}
	}
</script>
<style lang="scss" scoped>
	.page-conent{
		padding: 0px 0px 60px 0px;
	}
</style>